package asava.trees;

/**
 * @author Tim Richter
 */
public final class For extends Tree {
    public Tree init;
    public Tree condition;
    public Tree step;
    public Tree body;

    public For(final Tree init,
               final Tree condition,
               final Tree step,
               final Tree body) {
        this.init = init;
        this.condition = condition;
        this.step = step;
        this.body = body;
    }

    @Override
    public int kind() {
        return TreeKind.FOR;
    }

    @Override
    public void accept(final TreeVisitor visitor) {
        visitor.visit(this);
    }
}
